home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.src.lzh / libbig / sys_fast.c < prev   
C/C++ Source or Header  |  1989-07-09  |  623b  |  45 lines

  1. /*
  2.  * news sys file reading functions (fast, big, in-memory version)
  3.  */
  4.  
  5. #include <stdio.h>
  6.  
  7. #ifndef AMIGA
  8. #  include <sys/types.h>
  9. #endif /* AMIGA */
  10.  
  11. #include "news.h"
  12. #include "system.h"
  13.  
  14. /* imports */
  15. extern struct system *currsys, *firstsys;
  16.  
  17. /* exports */
  18. boolean justone = NO;
  19.  
  20. /* private */
  21. static struct system *thissys = NULL;
  22.  
  23. /* ARGSUSED */
  24. void rewsys(fp)
  25. FILE *fp;
  26. {
  27.     currsys = firstsys;
  28. }
  29.  
  30. struct system *mysysincache()                /* optimisation */
  31. {
  32.     return thissys;
  33. }
  34.  
  35. void remmysys(sys)                /* remember this system */
  36. struct system *sys;
  37. {
  38.     thissys = sys;
  39. }
  40.  
  41. void freecurrsys()
  42. {
  43.     /* never free sys entries */
  44. }
  45.